*{
    /*消除默认外边距*/
    margin: 0px;
    /*消除默认内边距*/
    padding: 0px;
}
html,
body{
    width: 100%;
    height: 100%;
}
.container .navbar{
    width: 100%;
    height: 50px;
    background-color: black;
    /*消除浮动带来的影响*/
    overflow: hidden;
}
.container .navbar a{
    display:inline-block;  /*设置行内块元素*/
    width: 80px;  /*设置宽度*/ 
    color: white;
    font-size: large;
    line-height: 50px; /*设置文字高度和导航栏一样的高度*/
    text-decoration :none;  /*去掉下划线*/
    text-align: center;  /*设置文字居中*/
}
.container .navbar button{
    width: 80px;  /*设置宽度*/ 
    color: white;
    font-size: large;
    line-height: 50px; /*设置文字高度和导航栏一样的高度*/
    background-color: black;
    border: 0px;/*去掉边框*/
}
.container .navbar a:hover{
    /*设置鼠标事件*/
    background-color: green;
}
.container .navbar button:hover{
    background-color: green;
}
.container .navbar .login{
    float: right;  /*设置右浮动*/

    /* 设置按钮宽度 */
    width: 120px; /* 根据需要调整宽度，保证足够显示内容 */

    /* 设置按钮的字体大小 */
    /*font-size: 16px;*/ /* 根据需要调整字体大小 */

    /* 设置按钮文本溢出处理 */
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 隐藏超出部分 */
    text-overflow: ellipsis; /* 超出部分用省略号表示 */
}


.modal {
    display: none; /* 默认隐藏弹窗 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/*设置弹窗内的样式*/
/*x样式*/
.modal .modal-content .close{
    color: #aaa;
    float: right;
    font-size: 40px;
    font-weight: bold;
}

.modal .modal-content .close:hover,
.modal .modal-content .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/*标题和页面布局*/
.modal .modal-content h2{
    color: black;
    text-align: center;
}

.modal .modal-content form .acc{
    outline: none;  /*不要复选框*/
    width: 85%;
    height: 20px;
    font-size: 15px;
    margin-top: 1rem;
    padding: 1rem 0 0 1.5rem;
    border: none;
    border-bottom: 1px solid green;
    color: green;
    background-color: rgba(0,0,0,0);
}

.modal .modal-content .btn{
    width: 95%;
    height: 40px;
    color: white;
    font-size: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    background-color: #4CAF50;
    cursor: pointer;
}

.modal .modal-content .btn:hover{
    background-color: #45a049;
}

.modal .modal-content p{
    display:inline-block;
    margin-top: 10px;
    margin-left: 10px;
    font-size: 10px;
}

.modal .modal-content #registerBtn{
    background-color: white;
    border: none;
}

.modal .modal-content #registerBtn:hover{
    text-decoration:underline;
    color: red; 
}

.modal .modal-content pre{
    color: red;
}


.modal .modal-content #users{
    font-size: 15px;
    background-color: white;
    border: none;
}

.modal .modal-content #users:hover{
    text-decoration:underline;
    color: red; 
}
